package cn.iocoder.yudao.module.system.framework.translate.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Description:
 * Author: li
 * Date: 2024/2/20
 */
@Component
@Data
@ConfigurationProperties(prefix = "translate")
public class TranslateConfig {
    private String proxyHost; // 代理host
    private Integer proxyPort; // 代理端口
    private String channel; // 渠道
    private Google google; // 谷歌配置

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Google {
        private String apiKey;
    }

}
